package il.ac.bgu.soa2009.hw5.restuarnt;

/**
 * User: Henry
 * Date: 22/02/2009
 * Time: 21:00:33
 */
public class RestaurantSingleton {
    private static RestaurantIfc restaurant;

    public static RestaurantIfc getInstance() {
        synchronized (RestaurantSingleton.class) {
            if (restaurant == null) {
                restaurant = new Restaurant();
            }
        }
        return restaurant;
    }
}
